package com.company.http;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class GsonUtil {
    public static Gson gson;
    public static Gson gson(){
        if(gson == null){
            synchronized (GsonUtil.class){
                if (gson == null) {
                    gson = new GsonBuilder()
                            .create();
                }
            }
        }
        return gson;
    }
}
